package com.wecan.saasdata.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wecan.base.PO.Oss;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Author liuzhihao
 * @Date 2022.01.15
 * @Version 1.0.0
 * @Description oss数据层
 */
@Mapper
public interface OssMapper extends BaseMapper<Oss> {

    @Select("select * from xqh_oss where key=#{key} for update")
    Oss queryOssLock(String key);
}
